//
//  RJPhotoViewController.h
//  Muses
//
//  Created by hzyd-wlj on 14/11/17.
//  Copyright (c) 2014年 yodo. All rights reserved.
//

#import "BaseViewController.h"
#import "RJPhoto.h"
@class RJPhotoViewController;
@class Moment;
@class RJPhotoImageView;
@protocol RJPhotoViewControllerDataSource;
@protocol RJPhotoViewControllerDelegate;

@interface RJPhotoViewController : BaseViewController<UIScrollViewDelegate>
/**
 *  当前的 RJPhotoImageView
 */
@property (strong, nonatomic, readonly) RJPhotoImageView *currentZoomedImageView;
@property (assign, nonatomic, readonly) BOOL isFullScreen;
@property (assign, nonatomic, readonly) NSInteger currentIndex;
@property (weak, nonatomic) id<RJPhotoViewControllerDataSource> dataSourse;
@property (weak, nonatomic) id<RJPhotoViewControllerDelegate> delegate;

- (instancetype)initWithDataSource:(id<RJPhotoViewControllerDataSource>)dataSource delegate:(id<RJPhotoViewControllerDelegate>)delegate;
@end

@protocol RJPhotoViewControllerDataSource <NSObject>

@required
/**
 *  照片数量
 *
 *  @return
 */
- (NSInteger)photoViewNumberOfPhoto;

/**
 *  返回RJPhoto
 *
 *  @param photoView
 *  @param row
 *
 *  @return RJPhoto
 */
- (RJPhoto *)photoView:(RJPhotoViewController *)photoView photoForRow:(NSUInteger)row;

@end

@protocol RJPhotoViewControllerDelegate <NSObject>
/**
 *  评论数量
 *
 */
- (NSInteger)numberOfCommentCount;
/**
 *  点击了评论列表
 *
 */
- (void)photoViewDidSelectCommentButton;

@end